﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Model
{
   public class Engage_subjects//试题题库登记表
    {
        [Key]
        [Display(Name = "主键")]
        public int sub_id { get; set; }
        [Display(Name = "试题I级分类编号")]
        [Required(ErrorMessage = "试题I级分类编号不能为空")]
        public string first_kind_id { get; set; }
        [Display(Name = "试题I级分类名称")]
        [Required(ErrorMessage = "试题I级分类名称不能为空")]
        public string first_kind_name { get; set; }
        [Display(Name = "试题II级分类编号")]
        [Required(ErrorMessage = "试题II级分类编号不能为空")]
        public string second_kind_id { get; set; }
        [Display(Name = "试题II级分类名称")]
        [Required(ErrorMessage = "试题II级分类名称不能为空")]
        public string second_kind_name { get; set; }
        [Display(Name = "登记人")]
        [Required(ErrorMessage = "登记人不能为空")]
        public string register { get; set; }
        [Display(Name = "登记时间")]
        [Required(ErrorMessage = "登记时间不能为空")]
        public DateTime regist_time { get; set; }
        [Display(Name = "试题出处")]
        [Required(ErrorMessage = "试题出处不能为空")]
        public string derivation { get; set; }
        [Display(Name = "题干")]
        [Required(ErrorMessage = "题干不能为空")]
        public string content { get; set; }
        [Display(Name = "答案a ")]
        [Required(ErrorMessage = "答案a不能为空")]
        public string key_a { get; set; }
        [Display(Name = "答案b ")]
        [Required(ErrorMessage = "答案b不能为空")]
        public string key_b { get; set; }
        [Display(Name = "答案c ")]
        [Required(ErrorMessage = "答案c不能为空")]
        public string key_c { get; set; }
        [Display(Name = "答案d ")]
        [Required(ErrorMessage = "答案d不能为空")]
        public string key_d { get; set; }
        [Display(Name = "答案e ")]
        [Required(ErrorMessage = "答案e不能为空")]
        public string key_e { get; set; }
        [Display(Name = "正确答案 ")]
        [Required(ErrorMessage = "正确答案不能为空")]
        public string correct_key { get; set; }
        [Display(Name = "变更人 ")]
        [Required(ErrorMessage = "变更人不能为空")]
        public string changer { get; set; }
        [Display(Name = "变更时间 ")]
        [Required(ErrorMessage = "变更时间不能为空")]
        public DateTime change_time { get; set; }
    }
}
